package com.gton.person.commons;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: PersonalDesign
 * @description: 分页返回数据
 * @author: GuoTong
 * @create: 2020-12-26 16:18
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> {

    /**
     * 状态码
     */
    private String code;
    /**
     * 消息
     */
    private String msg;
    /**
     * 数据
     */
    private T data;

    /**
     * 总条数
     */
    private Integer pageCount;
    /**
     * 当前页
     */
    private Integer currentPage;
    /**
     * 每页显示条数
     */
    private Integer pageSize;

    /**最大页数*/
    private Integer maxPage;


}
